Skip to content

Conversation

spevans
Copy link
Contributor

@spevans spevans commented Mar 10, 2019

  • TimeZone.knownTimeZoneIdentifiers was returning time zone names
    that could not be instantiated by TimeZone(identifier:) due to
    CFTimeZone.c:__nameStringOK() filtering out some names.

  • Make CFTimeZoneCopyKnownNames(), used by .knownTimeZoneIdentifiers,
    also filter these names using __nameStringOK().

  • __nameStringOK calls ICU function ucal_getCanonicalTimeZoneID
    which ultimately decides if the time zone is valid.

(cherry picked from commit 7972ce4)

…Linux

- TimeZone.knownTimeZoneIdentifiers was returning time zone names
  that could not be instantiated by TimeZone(identifier:) due to
  CFTimeZone.c:__nameStringOK() filtering out some names.

- Make CFTimeZoneCopyKnownNames(), used by .knownTimeZoneIdentifiers,
  also filter these names using __nameStringOK().

- __nameStringOK calls ICU function ucal_getCanonicalTimeZoneID
  which ultimately decides if the time zone is valid.

(cherry picked from commit 7972ce4)
@spevans
Copy link
Contributor Author

spevans commented Mar 10, 2019

@swift-ci test 4.2

@spevans
Copy link
Contributor Author

spevans commented Mar 10, 2019

cc @weissi

Copy link
Contributor

@weissi weissi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thanks very much

@weissi weissi merged commit e959b9f into swiftlang:swift-4.2-branch Mar 11, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants